﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace NF_Mode
{
    /// <summary>
    /// 活动的添加修改
    /// </summary>
    public class ActiveModel:BaseAnswer
    {
       
        [JsonProperty("id")]
        public int ID { get; set; }

        [JsonProperty("sid")]
        public int Sid { get; set; }

        /// <summary>
        /// 活动标题
        /// </summary>
        [JsonProperty("title")]
        public string Title  { get; set;}

        /// <summary>
        /// 推荐语
        /// </summary>
        [JsonProperty("recommend")]
        public string  Recommend  { get; set; }
        /// <summary>
        /// 横幅
        /// </summary>
        [JsonProperty("banner")]
        public string Banner { get; set; }
        /// <summary>
        /// 电影名称
        /// </summary>
        [JsonProperty("movie_title_list")]
        public string  Movie_Title_List { get; set; }
        /// <summary>
        /// 参与人数
        /// </summary>
        [JsonProperty("anumber")]
        public int Anumber { get; set; }

        /// <summary>
        /// 参与人数下线
        /// </summary>
        [JsonProperty("floor")]
        public int Floor { get; set; }

        /// <summary>
        /// 参与活动人数下线
        /// </summary>
        [JsonProperty("upper")]
        public int Upper { get; set; }


        /// <summary>
        /// 电话号码
        /// </summary>
        [JsonProperty("phone")]
        public string Phone { get; set; }

        /// <summary>
        /// 活动开始时间
        /// </summary>
        [JsonProperty("starttime")]
        public int StartTime { get; set; }


        /// <summary>
        /// 活动结束时间
        /// </summary>
        [JsonProperty("endtime")]
        public int EndTime { get; set; }

        /// <summary>
        /// 商圈id
        /// </summary>
        [JsonProperty("area_id")]
        public int Area_Id { get; set; }

        /// <summary>
        /// 活动经费
        /// </summary>
        [JsonProperty("money")]
        public double Money { get; set; }

        /// <summary>
        /// 活动长图
        /// </summary>
        [JsonProperty("img_intro")]
        public string Img_Intro { get; set; }

        /// <summary>
        /// 活动介绍
        /// </summary>
        [JsonProperty("intro")]
        public string Intro { get; set; }

        /// <summary>
        /// 活动状态
        /// </summary>
        [JsonProperty("astatus")]
        public string Astatus { get; set; }

        /// <summary>
        /// 活动类型
        /// </summary>
        [JsonProperty("atype")]
        public string Atype { get; set; }

        /// <summary>
        /// 商家名称
        /// </summary>
        [JsonProperty("sitename")]
        public string SiteName { get; set; }

        /// <summary>
        /// 城市
        /// </summary>
        [JsonProperty("city")]
        public string City { get; set; }

        /// <summary>
        /// 标签
        /// </summary>
        [JsonProperty("tag")]
        public string Tag { get; set; }

        /// <summary>
        /// 商家地址
        /// </summary>
        [JsonProperty("address")]
        public string Address { get; set; }

        /// <summary>
        /// 商家定位地址
        /// </summary>
        [JsonProperty("address_location")]
        public string Address_Location { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        [JsonProperty("latitude")]
        public string Latitude { get; set; }

        /// <summary>
        /// 维度
        /// </summary>
        [JsonProperty("longtitude")]
        public string Longtitude { get; set; }

        /// <summary>
        /// 组织者ID
        /// </summary>
        [JsonProperty("user_id")]
        public int User_ID { get; set; }

        /// <summary>
        /// 组织者昵称
        /// </summary>
        [JsonProperty("nicname")]
        public string NickName { get; set; }

        /// <summary>
        /// 组织者头像
        /// </summary>
        [JsonProperty("avatar")]
        public string Avatar { get; set; }

 

        /// <summary>
        /// 已报名用户
        /// </summary>
        [JsonProperty("join")]
        public string[] Join { get; set; }

        /// <summary>
        /// 相似活动列表
        /// </summary>
        [JsonProperty("same")]
        public string[] Same { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [JsonProperty("Content")]
        public ActiveContent[] Content { get; set; }                         
    }

    /// <summary>
    /// 活动类(活动列表)
    /// </summary>
    public class AvtiveList
    {
        /// <summary>
        /// 活动ID
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 活动标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 活动推荐语
        /// </summary>
        public string Recommend { get; set; }
        /// <summary>
        /// 活动电影列表
        /// </summary>
        public string Movie_title_list { get; set; }
        /// <summary>
        /// 活动横幅图片
        /// </summary>
        public string Banner { get; set; }
        /// <summary>
        /// 活动费用
        /// </summary>
        public string Money { get; set; }
        /// <summary>
        /// 活动开始时间
        /// </summary>
        public string StartTime { get; set; }
        /// <summary>
        /// 活动状态
        /// </summary>
        public string Astatus { get; set; }

        /// <summary>
        /// 点击量
        /// </summary>
        public int Cnt_hot { get; set; }     //cnt_hot

        /// <summary>
        /// 活动收入
        /// </summary>
        public string Receiving_Money { get; set; }   //receiving_money
    }

    /// <summary>
    /// 活动图片及图片说明
    /// </summary>
    public class ActiveContent
    {
        /// <summary>
        /// 图片Url
        /// </summary>
        [JsonProperty("picture")]
        public string PicUrl { get; set; }

        /// <summary>
        /// 文字说明
        /// </summary>
        [JsonProperty("text")]
        public string TxtIntro { get; set; }
    }

    [Serializable]
    public class ActiveJoinUser
    {
        [JsonProperty("user_id")]
        public int Id { get; set; }

        [JsonProperty("nickname")]
        public string Name { get; set; }

         [JsonProperty("issignin")]
        public string  IsSign { get; set; }

         [JsonProperty("Phone")]
        public string Phone { get; set; }

        [JsonProperty("sex")]
        public string Sex { get; set; }

        [JsonProperty("phonenumber")]
        public string Phoneumber { get; set; }
    }
}
